package ophiux.wechatpay.sdk.request;

import java.util.Map;

import ophiux.wechatpay.sdk.common.utils.MapToXMLUtil;
import ophiux.wechatpay.sdk.response.OphiuxResponse;

public abstract class OphiuxBaseRequest<T extends OphiuxResponse> {
	
	public abstract String getApiMethod();
	
	public abstract String getApiVersion();
	
	public abstract Map getTextParam();
	
	public abstract Class<T> getResponseClass();

	
	
	
	public String toRequestParam(Map publicParams,Map businessParams){
		String requestXML = "<xml>"+
				//TODO  拼接		共用参数+业务参数	 
				MapToXMLUtil.mapToXml(publicParams)+
				MapToXMLUtil.mapToXml(businessParams)+
			"</xml>";
		return requestXML;
	}


	 
	
}
